{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.read_csv('zimo.txt', header=None)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x0F</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x0F</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x30</td>\n",
       "      <td>0x28</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x22</td>\n",
       "      <td>0x21</td>\n",
       "      <td>0x30</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x30</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x48</td>\n",
       "      <td>0x30</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x0E</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0xC0</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x07</td>\n",
       "      <td>0x04</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0xC0</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x07</td>\n",
       "      <td>0x04</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x0F</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x0E</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0xC8</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x1C</td>\n",
       "      <td>0x22</td>\n",
       "      <td>0x21</td>\n",
       "      <td>0x21</td>\n",
       "      <td>0x22</td>\n",
       "      <td>0x1C</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x31</td>\n",
       "      <td>0x22</td>\n",
       "      <td>0x22</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x0F</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0xC0</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x3C</td>\n",
       "      <td>0x23</td>\n",
       "      <td>0x02</td>\n",
       "      <td>0x02</td>\n",
       "      <td>0x27</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0x20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x0E</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>0xC0</td>\n",
       "      <td>0x30</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x07</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0xE0</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x0F</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0xE8</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x23</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0xF8</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0xE8</td>\n",
       "      <td>0x08</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x3F</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x03</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "      <td>0x00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0     1     2     3     4     5     6     7     8     9     10    11    12  \\\n",
       "0   0  0x00  0xE0  0x10  0x08  0x08  0x10  0xE0  0x00  0x00  0x0F  0x10  0x20   \n",
       "1   1  0x00  0x10  0x10  0xF8  0x00  0x00  0x00  0x00  0x00  0x20  0x20  0x3F   \n",
       "2   2  0x00  0x70  0x08  0x08  0x08  0x88  0x70  0x00  0x00  0x30  0x28  0x24   \n",
       "3   3  0x00  0x30  0x08  0x88  0x88  0x48  0x30  0x00  0x00  0x18  0x20  0x20   \n",
       "4   4  0x00  0x00  0xC0  0x20  0x10  0xF8  0x00  0x00  0x00  0x07  0x04  0x24   \n",
       "5   5  0x00  0x00  0xC0  0x20  0x10  0xF8  0x00  0x00  0x00  0x07  0x04  0x24   \n",
       "6   6  0x00  0xE0  0x10  0x88  0x88  0x18  0x00  0x00  0x00  0x0F  0x11  0x20   \n",
       "7   7  0x00  0x38  0x08  0x08  0xC8  0x38  0x08  0x00  0x00  0x00  0x00  0x3F   \n",
       "8   8  0x00  0x70  0x88  0x08  0x08  0x88  0x70  0x00  0x00  0x1C  0x22  0x21   \n",
       "9   9  0x00  0xE0  0x10  0x08  0x08  0x10  0xE0  0x00  0x00  0x00  0x31  0x22   \n",
       "10  A  0x00  0x00  0xC0  0x38  0xE0  0x00  0x00  0x00  0x20  0x3C  0x23  0x02   \n",
       "11  B  0x08  0xF8  0x88  0x88  0x88  0x70  0x00  0x00  0x20  0x3F  0x20  0x20   \n",
       "12  C  0xC0  0x30  0x08  0x08  0x08  0x08  0x38  0x00  0x07  0x18  0x20  0x20   \n",
       "13  D  0x08  0xF8  0x08  0x08  0x08  0x10  0xE0  0x00  0x20  0x3F  0x20  0x20   \n",
       "14  E  0x08  0xF8  0x88  0x88  0xE8  0x08  0x10  0x00  0x20  0x3F  0x20  0x20   \n",
       "15  F  0x08  0xF8  0x88  0x88  0xE8  0x08  0x10  0x00  0x20  0x3F  0x20  0x00   \n",
       "\n",
       "      13    14    15    16  \n",
       "0   0x20  0x10  0x0F  0x00  \n",
       "1   0x20  0x20  0x00  0x00  \n",
       "2   0x22  0x21  0x30  0x00  \n",
       "3   0x20  0x11  0x0E  0x00  \n",
       "4   0x24  0x3F  0x24  0x00  \n",
       "5   0x24  0x3F  0x24  0x00  \n",
       "6   0x20  0x11  0x0E  0x00  \n",
       "7   0x00  0x00  0x00  0x00  \n",
       "8   0x21  0x22  0x1C  0x00  \n",
       "9   0x22  0x11  0x0F  0x00  \n",
       "10  0x02  0x27  0x38  0x20  \n",
       "11  0x20  0x11  0x0E  0x00  \n",
       "12  0x20  0x10  0x08  0x00  \n",
       "13  0x20  0x10  0x0F  0x00  \n",
       "14  0x23  0x20  0x18  0x00  \n",
       "15  0x03  0x00  0x00  0x00  "
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "new_df = df.copy()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = '{:08b}'.format(int(df.iloc[i,j],16))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001111</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001111</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>00000000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00110000</td>\n",
       "      <td>00101000</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00100010</td>\n",
       "      <td>00100001</td>\n",
       "      <td>00110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00110000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01001000</td>\n",
       "      <td>00110000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001111</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00111000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11001000</td>\n",
       "      <td>00111000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>00000000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00100010</td>\n",
       "      <td>00100001</td>\n",
       "      <td>00100001</td>\n",
       "      <td>00100010</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00110001</td>\n",
       "      <td>00100010</td>\n",
       "      <td>00100010</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001111</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11000000</td>\n",
       "      <td>00111000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00111100</td>\n",
       "      <td>00100011</td>\n",
       "      <td>00000010</td>\n",
       "      <td>00000010</td>\n",
       "      <td>00100111</td>\n",
       "      <td>00111000</td>\n",
       "      <td>00100000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>11000000</td>\n",
       "      <td>00110000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00111000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001111</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>11101000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100011</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11111000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>11101000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00111111</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000011</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0         1         2         3         4         5         6         7   \\\n",
       "0   0  00000000  11100000  00010000  00001000  00001000  00010000  11100000   \n",
       "1   1  00000000  00010000  00010000  11111000  00000000  00000000  00000000   \n",
       "2   2  00000000  01110000  00001000  00001000  00001000  10001000  01110000   \n",
       "3   3  00000000  00110000  00001000  10001000  10001000  01001000  00110000   \n",
       "4   4  00000000  00000000  11000000  00100000  00010000  11111000  00000000   \n",
       "5   5  00000000  00000000  11000000  00100000  00010000  11111000  00000000   \n",
       "6   6  00000000  11100000  00010000  10001000  10001000  00011000  00000000   \n",
       "7   7  00000000  00111000  00001000  00001000  11001000  00111000  00001000   \n",
       "8   8  00000000  01110000  10001000  00001000  00001000  10001000  01110000   \n",
       "9   9  00000000  11100000  00010000  00001000  00001000  00010000  11100000   \n",
       "10  A  00000000  00000000  11000000  00111000  11100000  00000000  00000000   \n",
       "11  B  00001000  11111000  10001000  10001000  10001000  01110000  00000000   \n",
       "12  C  11000000  00110000  00001000  00001000  00001000  00001000  00111000   \n",
       "13  D  00001000  11111000  00001000  00001000  00001000  00010000  11100000   \n",
       "14  E  00001000  11111000  10001000  10001000  11101000  00001000  00010000   \n",
       "15  F  00001000  11111000  10001000  10001000  11101000  00001000  00010000   \n",
       "\n",
       "          8         9         10        11        12        13        14  \\\n",
       "0   00000000  00000000  00001111  00010000  00100000  00100000  00010000   \n",
       "1   00000000  00000000  00100000  00100000  00111111  00100000  00100000   \n",
       "2   00000000  00000000  00110000  00101000  00100100  00100010  00100001   \n",
       "3   00000000  00000000  00011000  00100000  00100000  00100000  00010001   \n",
       "4   00000000  00000000  00000111  00000100  00100100  00100100  00111111   \n",
       "5   00000000  00000000  00000111  00000100  00100100  00100100  00111111   \n",
       "6   00000000  00000000  00001111  00010001  00100000  00100000  00010001   \n",
       "7   00000000  00000000  00000000  00000000  00111111  00000000  00000000   \n",
       "8   00000000  00000000  00011100  00100010  00100001  00100001  00100010   \n",
       "9   00000000  00000000  00000000  00110001  00100010  00100010  00010001   \n",
       "10  00000000  00100000  00111100  00100011  00000010  00000010  00100111   \n",
       "11  00000000  00100000  00111111  00100000  00100000  00100000  00010001   \n",
       "12  00000000  00000111  00011000  00100000  00100000  00100000  00010000   \n",
       "13  00000000  00100000  00111111  00100000  00100000  00100000  00010000   \n",
       "14  00000000  00100000  00111111  00100000  00100000  00100011  00100000   \n",
       "15  00000000  00100000  00111111  00100000  00000000  00000011  00000000   \n",
       "\n",
       "          15        16  \n",
       "0   00001111  00000000  \n",
       "1   00000000  00000000  \n",
       "2   00110000  00000000  \n",
       "3   00001110  00000000  \n",
       "4   00100100  00000000  \n",
       "5   00100100  00000000  \n",
       "6   00001110  00000000  \n",
       "7   00000000  00000000  \n",
       "8   00011100  00000000  \n",
       "9   00001111  00000000  \n",
       "10  00111000  00100000  \n",
       "11  00001110  00000000  \n",
       "12  00001000  00000000  \n",
       "13  00001111  00000000  \n",
       "14  00011000  00000000  \n",
       "15  00000000  00000000  "
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = ''.join(reversed(new_df.iloc[i,j]))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11110000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001100</td>\n",
       "      <td>00010100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>01000100</td>\n",
       "      <td>10000100</td>\n",
       "      <td>00001100</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001100</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010010</td>\n",
       "      <td>00001100</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000011</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000011</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00100000</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00100100</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11110000</td>\n",
       "      <td>10001000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010011</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00111000</td>\n",
       "      <td>01000100</td>\n",
       "      <td>10000100</td>\n",
       "      <td>10000100</td>\n",
       "      <td>01000100</td>\n",
       "      <td>00111000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>10001100</td>\n",
       "      <td>01000100</td>\n",
       "      <td>01000100</td>\n",
       "      <td>10001000</td>\n",
       "      <td>11110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000011</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00111100</td>\n",
       "      <td>11000100</td>\n",
       "      <td>01000000</td>\n",
       "      <td>01000000</td>\n",
       "      <td>11100100</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00000100</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00001110</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>10001000</td>\n",
       "      <td>01110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>00000011</td>\n",
       "      <td>00001100</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00011100</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11100000</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000111</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00001000</td>\n",
       "      <td>11110000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010111</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>11000100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00011000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00011111</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010001</td>\n",
       "      <td>00010111</td>\n",
       "      <td>00010000</td>\n",
       "      <td>00001000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000100</td>\n",
       "      <td>11111100</td>\n",
       "      <td>00000100</td>\n",
       "      <td>00000000</td>\n",
       "      <td>11000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "      <td>00000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0         1         2         3         4         5         6         7   \\\n",
       "0   0  00000000  00000111  00001000  00010000  00010000  00001000  00000111   \n",
       "1   1  00000000  00001000  00001000  00011111  00000000  00000000  00000000   \n",
       "2   2  00000000  00001110  00010000  00010000  00010000  00010001  00001110   \n",
       "3   3  00000000  00001100  00010000  00010001  00010001  00010010  00001100   \n",
       "4   4  00000000  00000000  00000011  00000100  00001000  00011111  00000000   \n",
       "5   5  00000000  00000000  00000011  00000100  00001000  00011111  00000000   \n",
       "6   6  00000000  00000111  00001000  00010001  00010001  00011000  00000000   \n",
       "7   7  00000000  00011100  00010000  00010000  00010011  00011100  00010000   \n",
       "8   8  00000000  00001110  00010001  00010000  00010000  00010001  00001110   \n",
       "9   9  00000000  00000111  00001000  00010000  00010000  00001000  00000111   \n",
       "10  A  00000000  00000000  00000011  00011100  00000111  00000000  00000000   \n",
       "11  B  00010000  00011111  00010001  00010001  00010001  00001110  00000000   \n",
       "12  C  00000011  00001100  00010000  00010000  00010000  00010000  00011100   \n",
       "13  D  00010000  00011111  00010000  00010000  00010000  00001000  00000111   \n",
       "14  E  00010000  00011111  00010001  00010001  00010111  00010000  00001000   \n",
       "15  F  00010000  00011111  00010001  00010001  00010111  00010000  00001000   \n",
       "\n",
       "          8         9         10        11        12        13        14  \\\n",
       "0   00000000  00000000  11110000  00001000  00000100  00000100  00001000   \n",
       "1   00000000  00000000  00000100  00000100  11111100  00000100  00000100   \n",
       "2   00000000  00000000  00001100  00010100  00100100  01000100  10000100   \n",
       "3   00000000  00000000  00011000  00000100  00000100  00000100  10001000   \n",
       "4   00000000  00000000  11100000  00100000  00100100  00100100  11111100   \n",
       "5   00000000  00000000  11100000  00100000  00100100  00100100  11111100   \n",
       "6   00000000  00000000  11110000  10001000  00000100  00000100  10001000   \n",
       "7   00000000  00000000  00000000  00000000  11111100  00000000  00000000   \n",
       "8   00000000  00000000  00111000  01000100  10000100  10000100  01000100   \n",
       "9   00000000  00000000  00000000  10001100  01000100  01000100  10001000   \n",
       "10  00000000  00000100  00111100  11000100  01000000  01000000  11100100   \n",
       "11  00000000  00000100  11111100  00000100  00000100  00000100  10001000   \n",
       "12  00000000  11100000  00011000  00000100  00000100  00000100  00001000   \n",
       "13  00000000  00000100  11111100  00000100  00000100  00000100  00001000   \n",
       "14  00000000  00000100  11111100  00000100  00000100  11000100  00000100   \n",
       "15  00000000  00000100  11111100  00000100  00000000  11000000  00000000   \n",
       "\n",
       "          15        16  \n",
       "0   11110000  00000000  \n",
       "1   00000000  00000000  \n",
       "2   00001100  00000000  \n",
       "3   01110000  00000000  \n",
       "4   00100100  00000000  \n",
       "5   00100100  00000000  \n",
       "6   01110000  00000000  \n",
       "7   00000000  00000000  \n",
       "8   00111000  00000000  \n",
       "9   11110000  00000000  \n",
       "10  00011100  00000100  \n",
       "11  01110000  00000000  \n",
       "12  00010000  00000000  \n",
       "13  11110000  00000000  \n",
       "14  00011000  00000000  \n",
       "15  00000000  00000000  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = hex(int(new_df.iloc[i,j],2))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xf0</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0xf0</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xe</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0xe</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xc</td>\n",
       "      <td>0x14</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x44</td>\n",
       "      <td>0x84</td>\n",
       "      <td>0xc</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xc</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x12</td>\n",
       "      <td>0xc</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x3</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xe0</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x3</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xe0</td>\n",
       "      <td>0x20</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x24</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xf0</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x1c</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x13</td>\n",
       "      <td>0x1c</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xe</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0xe</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0x44</td>\n",
       "      <td>0x84</td>\n",
       "      <td>0x84</td>\n",
       "      <td>0x44</td>\n",
       "      <td>0x38</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x8c</td>\n",
       "      <td>0x44</td>\n",
       "      <td>0x44</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0xf0</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x3</td>\n",
       "      <td>0x1c</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x3c</td>\n",
       "      <td>0xc4</td>\n",
       "      <td>0x40</td>\n",
       "      <td>0x40</td>\n",
       "      <td>0xe4</td>\n",
       "      <td>0x1c</td>\n",
       "      <td>0x4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0xe</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x88</td>\n",
       "      <td>0x70</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>0x3</td>\n",
       "      <td>0xc</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x1c</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xe0</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x7</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0xf0</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x17</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0xc4</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x18</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x1f</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x11</td>\n",
       "      <td>0x17</td>\n",
       "      <td>0x10</td>\n",
       "      <td>0x8</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0xfc</td>\n",
       "      <td>0x4</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0xc0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "      <td>0x0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0     1     2     3     4     5     6     7    8     9     10    11    12  \\\n",
       "0   0   0x0   0x7   0x8  0x10  0x10   0x8   0x7  0x0   0x0  0xf0   0x8   0x4   \n",
       "1   1   0x0   0x8   0x8  0x1f   0x0   0x0   0x0  0x0   0x0   0x4   0x4  0xfc   \n",
       "2   2   0x0   0xe  0x10  0x10  0x10  0x11   0xe  0x0   0x0   0xc  0x14  0x24   \n",
       "3   3   0x0   0xc  0x10  0x11  0x11  0x12   0xc  0x0   0x0  0x18   0x4   0x4   \n",
       "4   4   0x0   0x0   0x3   0x4   0x8  0x1f   0x0  0x0   0x0  0xe0  0x20  0x24   \n",
       "5   5   0x0   0x0   0x3   0x4   0x8  0x1f   0x0  0x0   0x0  0xe0  0x20  0x24   \n",
       "6   6   0x0   0x7   0x8  0x11  0x11  0x18   0x0  0x0   0x0  0xf0  0x88   0x4   \n",
       "7   7   0x0  0x1c  0x10  0x10  0x13  0x1c  0x10  0x0   0x0   0x0   0x0  0xfc   \n",
       "8   8   0x0   0xe  0x11  0x10  0x10  0x11   0xe  0x0   0x0  0x38  0x44  0x84   \n",
       "9   9   0x0   0x7   0x8  0x10  0x10   0x8   0x7  0x0   0x0   0x0  0x8c  0x44   \n",
       "10  A   0x0   0x0   0x3  0x1c   0x7   0x0   0x0  0x0   0x4  0x3c  0xc4  0x40   \n",
       "11  B  0x10  0x1f  0x11  0x11  0x11   0xe   0x0  0x0   0x4  0xfc   0x4   0x4   \n",
       "12  C   0x3   0xc  0x10  0x10  0x10  0x10  0x1c  0x0  0xe0  0x18   0x4   0x4   \n",
       "13  D  0x10  0x1f  0x10  0x10  0x10   0x8   0x7  0x0   0x4  0xfc   0x4   0x4   \n",
       "14  E  0x10  0x1f  0x11  0x11  0x17  0x10   0x8  0x0   0x4  0xfc   0x4   0x4   \n",
       "15  F  0x10  0x1f  0x11  0x11  0x17  0x10   0x8  0x0   0x4  0xfc   0x4   0x0   \n",
       "\n",
       "      13    14    15   16  \n",
       "0    0x4   0x8  0xf0  0x0  \n",
       "1    0x4   0x4   0x0  0x0  \n",
       "2   0x44  0x84   0xc  0x0  \n",
       "3    0x4  0x88  0x70  0x0  \n",
       "4   0x24  0xfc  0x24  0x0  \n",
       "5   0x24  0xfc  0x24  0x0  \n",
       "6    0x4  0x88  0x70  0x0  \n",
       "7    0x0   0x0   0x0  0x0  \n",
       "8   0x84  0x44  0x38  0x0  \n",
       "9   0x44  0x88  0xf0  0x0  \n",
       "10  0x40  0xe4  0x1c  0x4  \n",
       "11   0x4  0x88  0x70  0x0  \n",
       "12   0x4   0x8  0x10  0x0  \n",
       "13   0x4   0x8  0xf0  0x0  \n",
       "14  0xc4   0x4  0x18  0x0  \n",
       "15  0xc0   0x0   0x0  0x0  "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = new_df.iloc[i,j][2:]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>f0</td>\n",
       "      <td>8</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>8</td>\n",
       "      <td>f0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>8</td>\n",
       "      <td>8</td>\n",
       "      <td>1f</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>fc</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>0</td>\n",
       "      <td>e</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>e</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>c</td>\n",
       "      <td>14</td>\n",
       "      <td>24</td>\n",
       "      <td>44</td>\n",
       "      <td>84</td>\n",
       "      <td>c</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>c</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>c</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>18</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>8</td>\n",
       "      <td>1f</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>e0</td>\n",
       "      <td>20</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>fc</td>\n",
       "      <td>24</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>8</td>\n",
       "      <td>1f</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>e0</td>\n",
       "      <td>20</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>fc</td>\n",
       "      <td>24</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>18</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>f0</td>\n",
       "      <td>88</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>1c</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>13</td>\n",
       "      <td>1c</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>fc</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>0</td>\n",
       "      <td>e</td>\n",
       "      <td>11</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>e</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>38</td>\n",
       "      <td>44</td>\n",
       "      <td>84</td>\n",
       "      <td>84</td>\n",
       "      <td>44</td>\n",
       "      <td>38</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>8c</td>\n",
       "      <td>44</td>\n",
       "      <td>44</td>\n",
       "      <td>88</td>\n",
       "      <td>f0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>1c</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>3c</td>\n",
       "      <td>c4</td>\n",
       "      <td>40</td>\n",
       "      <td>40</td>\n",
       "      <td>e4</td>\n",
       "      <td>1c</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>e</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>fc</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>3</td>\n",
       "      <td>c</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>1c</td>\n",
       "      <td>0</td>\n",
       "      <td>e0</td>\n",
       "      <td>18</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>8</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>fc</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>8</td>\n",
       "      <td>f0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>17</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>fc</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>c4</td>\n",
       "      <td>4</td>\n",
       "      <td>18</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>17</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>fc</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>c0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0   1   2   3   4   5   6   7  8   9   10  11  12  13  14  15 16\n",
       "0   0   0   7   8  10  10   8   7  0   0  f0   8   4   4   8  f0  0\n",
       "1   1   0   8   8  1f   0   0   0  0   0   4   4  fc   4   4   0  0\n",
       "2   2   0   e  10  10  10  11   e  0   0   c  14  24  44  84   c  0\n",
       "3   3   0   c  10  11  11  12   c  0   0  18   4   4   4  88  70  0\n",
       "4   4   0   0   3   4   8  1f   0  0   0  e0  20  24  24  fc  24  0\n",
       "5   5   0   0   3   4   8  1f   0  0   0  e0  20  24  24  fc  24  0\n",
       "6   6   0   7   8  11  11  18   0  0   0  f0  88   4   4  88  70  0\n",
       "7   7   0  1c  10  10  13  1c  10  0   0   0   0  fc   0   0   0  0\n",
       "8   8   0   e  11  10  10  11   e  0   0  38  44  84  84  44  38  0\n",
       "9   9   0   7   8  10  10   8   7  0   0   0  8c  44  44  88  f0  0\n",
       "10  A   0   0   3  1c   7   0   0  0   4  3c  c4  40  40  e4  1c  4\n",
       "11  B  10  1f  11  11  11   e   0  0   4  fc   4   4   4  88  70  0\n",
       "12  C   3   c  10  10  10  10  1c  0  e0  18   4   4   4   8  10  0\n",
       "13  D  10  1f  10  10  10   8   7  0   4  fc   4   4   4   8  f0  0\n",
       "14  E  10  1f  11  11  17  10   8  0   4  fc   4   4  c4   4  18  0\n",
       "15  F  10  1f  11  11  17  10   8  0   4  fc   4   0  c0   0   0  0"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = '{:0>2}'.format(new_df.iloc[i,j])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>00</td>\n",
       "      <td>07</td>\n",
       "      <td>08</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>f0</td>\n",
       "      <td>08</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>f0</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>00</td>\n",
       "      <td>08</td>\n",
       "      <td>08</td>\n",
       "      <td>1f</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>fc</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>00</td>\n",
       "      <td>0e</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>0e</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>0c</td>\n",
       "      <td>14</td>\n",
       "      <td>24</td>\n",
       "      <td>44</td>\n",
       "      <td>84</td>\n",
       "      <td>0c</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>00</td>\n",
       "      <td>0c</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>0c</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>18</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>03</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>1f</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>e0</td>\n",
       "      <td>20</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>fc</td>\n",
       "      <td>24</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>03</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>1f</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>e0</td>\n",
       "      <td>20</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>fc</td>\n",
       "      <td>24</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>00</td>\n",
       "      <td>07</td>\n",
       "      <td>08</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>18</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>f0</td>\n",
       "      <td>88</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>00</td>\n",
       "      <td>1c</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>13</td>\n",
       "      <td>1c</td>\n",
       "      <td>10</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>fc</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>00</td>\n",
       "      <td>0e</td>\n",
       "      <td>11</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>0e</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>38</td>\n",
       "      <td>44</td>\n",
       "      <td>84</td>\n",
       "      <td>84</td>\n",
       "      <td>44</td>\n",
       "      <td>38</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>00</td>\n",
       "      <td>07</td>\n",
       "      <td>08</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>8c</td>\n",
       "      <td>44</td>\n",
       "      <td>44</td>\n",
       "      <td>88</td>\n",
       "      <td>f0</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>03</td>\n",
       "      <td>1c</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>3c</td>\n",
       "      <td>c4</td>\n",
       "      <td>40</td>\n",
       "      <td>40</td>\n",
       "      <td>e4</td>\n",
       "      <td>1c</td>\n",
       "      <td>04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>0e</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>fc</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>03</td>\n",
       "      <td>0c</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>1c</td>\n",
       "      <td>00</td>\n",
       "      <td>e0</td>\n",
       "      <td>18</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>10</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>fc</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>f0</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>17</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>fc</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>c4</td>\n",
       "      <td>04</td>\n",
       "      <td>18</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>10</td>\n",
       "      <td>1f</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>17</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>fc</td>\n",
       "      <td>04</td>\n",
       "      <td>00</td>\n",
       "      <td>c0</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16\n",
       "0   0  00  07  08  10  10  08  07  00  00  f0  08  04  04  08  f0  00\n",
       "1   1  00  08  08  1f  00  00  00  00  00  04  04  fc  04  04  00  00\n",
       "2   2  00  0e  10  10  10  11  0e  00  00  0c  14  24  44  84  0c  00\n",
       "3   3  00  0c  10  11  11  12  0c  00  00  18  04  04  04  88  70  00\n",
       "4   4  00  00  03  04  08  1f  00  00  00  e0  20  24  24  fc  24  00\n",
       "5   5  00  00  03  04  08  1f  00  00  00  e0  20  24  24  fc  24  00\n",
       "6   6  00  07  08  11  11  18  00  00  00  f0  88  04  04  88  70  00\n",
       "7   7  00  1c  10  10  13  1c  10  00  00  00  00  fc  00  00  00  00\n",
       "8   8  00  0e  11  10  10  11  0e  00  00  38  44  84  84  44  38  00\n",
       "9   9  00  07  08  10  10  08  07  00  00  00  8c  44  44  88  f0  00\n",
       "10  A  00  00  03  1c  07  00  00  00  04  3c  c4  40  40  e4  1c  04\n",
       "11  B  10  1f  11  11  11  0e  00  00  04  fc  04  04  04  88  70  00\n",
       "12  C  03  0c  10  10  10  10  1c  00  e0  18  04  04  04  08  10  00\n",
       "13  D  10  1f  10  10  10  08  07  00  04  fc  04  04  04  08  f0  00\n",
       "14  E  10  1f  11  11  17  10  08  00  04  fc  04  04  c4  04  18  00\n",
       "15  F  10  1f  11  11  17  10  08  00  04  fc  04  00  c0  00  00  00"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = new_df.iloc[i,j].upper()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>00</td>\n",
       "      <td>07</td>\n",
       "      <td>08</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>F0</td>\n",
       "      <td>08</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>F0</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>00</td>\n",
       "      <td>08</td>\n",
       "      <td>08</td>\n",
       "      <td>1F</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>FC</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>00</td>\n",
       "      <td>0E</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>0E</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>0C</td>\n",
       "      <td>14</td>\n",
       "      <td>24</td>\n",
       "      <td>44</td>\n",
       "      <td>84</td>\n",
       "      <td>0C</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>00</td>\n",
       "      <td>0C</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>0C</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>18</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>03</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>1F</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>E0</td>\n",
       "      <td>20</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>FC</td>\n",
       "      <td>24</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>03</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>1F</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>E0</td>\n",
       "      <td>20</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>FC</td>\n",
       "      <td>24</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>00</td>\n",
       "      <td>07</td>\n",
       "      <td>08</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>18</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>F0</td>\n",
       "      <td>88</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>00</td>\n",
       "      <td>1C</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>13</td>\n",
       "      <td>1C</td>\n",
       "      <td>10</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>FC</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>00</td>\n",
       "      <td>0E</td>\n",
       "      <td>11</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>0E</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>38</td>\n",
       "      <td>44</td>\n",
       "      <td>84</td>\n",
       "      <td>84</td>\n",
       "      <td>44</td>\n",
       "      <td>38</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>00</td>\n",
       "      <td>07</td>\n",
       "      <td>08</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>8C</td>\n",
       "      <td>44</td>\n",
       "      <td>44</td>\n",
       "      <td>88</td>\n",
       "      <td>F0</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>03</td>\n",
       "      <td>1C</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>3C</td>\n",
       "      <td>C4</td>\n",
       "      <td>40</td>\n",
       "      <td>40</td>\n",
       "      <td>E4</td>\n",
       "      <td>1C</td>\n",
       "      <td>04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>10</td>\n",
       "      <td>1F</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>0E</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>FC</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>88</td>\n",
       "      <td>70</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>03</td>\n",
       "      <td>0C</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>1C</td>\n",
       "      <td>00</td>\n",
       "      <td>E0</td>\n",
       "      <td>18</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>10</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>10</td>\n",
       "      <td>1F</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>07</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>FC</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>08</td>\n",
       "      <td>F0</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>10</td>\n",
       "      <td>1F</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>17</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>FC</td>\n",
       "      <td>04</td>\n",
       "      <td>04</td>\n",
       "      <td>C4</td>\n",
       "      <td>04</td>\n",
       "      <td>18</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>10</td>\n",
       "      <td>1F</td>\n",
       "      <td>11</td>\n",
       "      <td>11</td>\n",
       "      <td>17</td>\n",
       "      <td>10</td>\n",
       "      <td>08</td>\n",
       "      <td>00</td>\n",
       "      <td>04</td>\n",
       "      <td>FC</td>\n",
       "      <td>04</td>\n",
       "      <td>00</td>\n",
       "      <td>C0</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "      <td>00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16\n",
       "0   0  00  07  08  10  10  08  07  00  00  F0  08  04  04  08  F0  00\n",
       "1   1  00  08  08  1F  00  00  00  00  00  04  04  FC  04  04  00  00\n",
       "2   2  00  0E  10  10  10  11  0E  00  00  0C  14  24  44  84  0C  00\n",
       "3   3  00  0C  10  11  11  12  0C  00  00  18  04  04  04  88  70  00\n",
       "4   4  00  00  03  04  08  1F  00  00  00  E0  20  24  24  FC  24  00\n",
       "5   5  00  00  03  04  08  1F  00  00  00  E0  20  24  24  FC  24  00\n",
       "6   6  00  07  08  11  11  18  00  00  00  F0  88  04  04  88  70  00\n",
       "7   7  00  1C  10  10  13  1C  10  00  00  00  00  FC  00  00  00  00\n",
       "8   8  00  0E  11  10  10  11  0E  00  00  38  44  84  84  44  38  00\n",
       "9   9  00  07  08  10  10  08  07  00  00  00  8C  44  44  88  F0  00\n",
       "10  A  00  00  03  1C  07  00  00  00  04  3C  C4  40  40  E4  1C  04\n",
       "11  B  10  1F  11  11  11  0E  00  00  04  FC  04  04  04  88  70  00\n",
       "12  C  03  0C  10  10  10  10  1C  00  E0  18  04  04  04  08  10  00\n",
       "13  D  10  1F  10  10  10  08  07  00  04  FC  04  04  04  08  F0  00\n",
       "14  E  10  1F  11  11  17  10  08  00  04  FC  04  04  C4  04  18  00\n",
       "15  F  10  1F  11  11  17  10  08  00  04  FC  04  00  C0  00  00  00"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(16):\n",
    "    for j in range(1,17):\n",
    "        new_df.iloc[i,j] = new_df.iloc[i,j]+'H'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>08H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>00H</td>\n",
       "      <td>08H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>00H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>14H</td>\n",
       "      <td>24H</td>\n",
       "      <td>44H</td>\n",
       "      <td>84H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>00H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>12H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>18H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>20H</td>\n",
       "      <td>24H</td>\n",
       "      <td>24H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>24H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>20H</td>\n",
       "      <td>24H</td>\n",
       "      <td>24H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>24H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>18H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>88H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>7</td>\n",
       "      <td>00H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>13H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>8</td>\n",
       "      <td>00H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>11H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>38H</td>\n",
       "      <td>44H</td>\n",
       "      <td>84H</td>\n",
       "      <td>84H</td>\n",
       "      <td>44H</td>\n",
       "      <td>38H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>9</td>\n",
       "      <td>00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>8CH</td>\n",
       "      <td>44H</td>\n",
       "      <td>44H</td>\n",
       "      <td>88H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>A</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>3CH</td>\n",
       "      <td>C4H</td>\n",
       "      <td>40H</td>\n",
       "      <td>40H</td>\n",
       "      <td>E4H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>04H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>C</td>\n",
       "      <td>03H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>18H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>D</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>E</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>17H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>C4H</td>\n",
       "      <td>04H</td>\n",
       "      <td>18H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>F</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>17H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>00H</td>\n",
       "      <td>C0H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   0    1    2    3    4    5    6    7    8    9    10   11   12   13   14  \\\n",
       "0   0  00H  07H  08H  10H  10H  08H  07H  00H  00H  F0H  08H  04H  04H  08H   \n",
       "1   1  00H  08H  08H  1FH  00H  00H  00H  00H  00H  04H  04H  FCH  04H  04H   \n",
       "2   2  00H  0EH  10H  10H  10H  11H  0EH  00H  00H  0CH  14H  24H  44H  84H   \n",
       "3   3  00H  0CH  10H  11H  11H  12H  0CH  00H  00H  18H  04H  04H  04H  88H   \n",
       "4   4  00H  00H  03H  04H  08H  1FH  00H  00H  00H  E0H  20H  24H  24H  FCH   \n",
       "5   5  00H  00H  03H  04H  08H  1FH  00H  00H  00H  E0H  20H  24H  24H  FCH   \n",
       "6   6  00H  07H  08H  11H  11H  18H  00H  00H  00H  F0H  88H  04H  04H  88H   \n",
       "7   7  00H  1CH  10H  10H  13H  1CH  10H  00H  00H  00H  00H  FCH  00H  00H   \n",
       "8   8  00H  0EH  11H  10H  10H  11H  0EH  00H  00H  38H  44H  84H  84H  44H   \n",
       "9   9  00H  07H  08H  10H  10H  08H  07H  00H  00H  00H  8CH  44H  44H  88H   \n",
       "10  A  00H  00H  03H  1CH  07H  00H  00H  00H  04H  3CH  C4H  40H  40H  E4H   \n",
       "11  B  10H  1FH  11H  11H  11H  0EH  00H  00H  04H  FCH  04H  04H  04H  88H   \n",
       "12  C  03H  0CH  10H  10H  10H  10H  1CH  00H  E0H  18H  04H  04H  04H  08H   \n",
       "13  D  10H  1FH  10H  10H  10H  08H  07H  00H  04H  FCH  04H  04H  04H  08H   \n",
       "14  E  10H  1FH  11H  11H  17H  10H  08H  00H  04H  FCH  04H  04H  C4H  04H   \n",
       "15  F  10H  1FH  11H  11H  17H  10H  08H  00H  04H  FCH  04H  00H  C0H  00H   \n",
       "\n",
       "     15   16  \n",
       "0   F0H  00H  \n",
       "1   00H  00H  \n",
       "2   0CH  00H  \n",
       "3   70H  00H  \n",
       "4   24H  00H  \n",
       "5   24H  00H  \n",
       "6   70H  00H  \n",
       "7   00H  00H  \n",
       "8   38H  00H  \n",
       "9   F0H  00H  \n",
       "10  1CH  04H  \n",
       "11  70H  00H  \n",
       "12  10H  00H  \n",
       "13  F0H  00H  \n",
       "14  18H  00H  \n",
       "15  00H  00H  "
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "new_df.iloc[:,0] = 'DB '+ new_df.iloc[:,1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>08H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>08H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>14H</td>\n",
       "      <td>24H</td>\n",
       "      <td>44H</td>\n",
       "      <td>84H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>12H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>18H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>20H</td>\n",
       "      <td>24H</td>\n",
       "      <td>24H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>24H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>20H</td>\n",
       "      <td>24H</td>\n",
       "      <td>24H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>24H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>18H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>88H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>13H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>11H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>38H</td>\n",
       "      <td>44H</td>\n",
       "      <td>84H</td>\n",
       "      <td>84H</td>\n",
       "      <td>44H</td>\n",
       "      <td>38H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>8CH</td>\n",
       "      <td>44H</td>\n",
       "      <td>44H</td>\n",
       "      <td>88H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>3CH</td>\n",
       "      <td>C4H</td>\n",
       "      <td>40H</td>\n",
       "      <td>40H</td>\n",
       "      <td>E4H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>04H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>DB 03H</td>\n",
       "      <td>03H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>18H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>17H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>C4H</td>\n",
       "      <td>04H</td>\n",
       "      <td>18H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>17H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>00H</td>\n",
       "      <td>C0H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        0    1    2    3    4    5    6    7    8    9    10   11   12   13  \\\n",
       "0   DB 00H  00H  07H  08H  10H  10H  08H  07H  00H  00H  F0H  08H  04H  04H   \n",
       "1   DB 00H  00H  08H  08H  1FH  00H  00H  00H  00H  00H  04H  04H  FCH  04H   \n",
       "2   DB 00H  00H  0EH  10H  10H  10H  11H  0EH  00H  00H  0CH  14H  24H  44H   \n",
       "3   DB 00H  00H  0CH  10H  11H  11H  12H  0CH  00H  00H  18H  04H  04H  04H   \n",
       "4   DB 00H  00H  00H  03H  04H  08H  1FH  00H  00H  00H  E0H  20H  24H  24H   \n",
       "5   DB 00H  00H  00H  03H  04H  08H  1FH  00H  00H  00H  E0H  20H  24H  24H   \n",
       "6   DB 00H  00H  07H  08H  11H  11H  18H  00H  00H  00H  F0H  88H  04H  04H   \n",
       "7   DB 00H  00H  1CH  10H  10H  13H  1CH  10H  00H  00H  00H  00H  FCH  00H   \n",
       "8   DB 00H  00H  0EH  11H  10H  10H  11H  0EH  00H  00H  38H  44H  84H  84H   \n",
       "9   DB 00H  00H  07H  08H  10H  10H  08H  07H  00H  00H  00H  8CH  44H  44H   \n",
       "10  DB 00H  00H  00H  03H  1CH  07H  00H  00H  00H  04H  3CH  C4H  40H  40H   \n",
       "11  DB 10H  10H  1FH  11H  11H  11H  0EH  00H  00H  04H  FCH  04H  04H  04H   \n",
       "12  DB 03H  03H  0CH  10H  10H  10H  10H  1CH  00H  E0H  18H  04H  04H  04H   \n",
       "13  DB 10H  10H  1FH  10H  10H  10H  08H  07H  00H  04H  FCH  04H  04H  04H   \n",
       "14  DB 10H  10H  1FH  11H  11H  17H  10H  08H  00H  04H  FCH  04H  04H  C4H   \n",
       "15  DB 10H  10H  1FH  11H  11H  17H  10H  08H  00H  04H  FCH  04H  00H  C0H   \n",
       "\n",
       "     14   15   16  \n",
       "0   08H  F0H  00H  \n",
       "1   04H  00H  00H  \n",
       "2   84H  0CH  00H  \n",
       "3   88H  70H  00H  \n",
       "4   FCH  24H  00H  \n",
       "5   FCH  24H  00H  \n",
       "6   88H  70H  00H  \n",
       "7   00H  00H  00H  \n",
       "8   44H  38H  00H  \n",
       "9   88H  F0H  00H  \n",
       "10  E4H  1CH  04H  \n",
       "11  88H  70H  00H  \n",
       "12  08H  10H  00H  \n",
       "13  08H  F0H  00H  \n",
       "14  04H  18H  00H  \n",
       "15  00H  00H  00H  "
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [],
   "source": [
    "new_df.drop(columns=1, inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "      <th>14</th>\n",
       "      <th>15</th>\n",
       "      <th>16</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>08H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>08H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>14H</td>\n",
       "      <td>24H</td>\n",
       "      <td>44H</td>\n",
       "      <td>84H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>12H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>18H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>20H</td>\n",
       "      <td>24H</td>\n",
       "      <td>24H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>24H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>20H</td>\n",
       "      <td>24H</td>\n",
       "      <td>24H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>24H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>18H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>88H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>13H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>11H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>38H</td>\n",
       "      <td>44H</td>\n",
       "      <td>84H</td>\n",
       "      <td>84H</td>\n",
       "      <td>44H</td>\n",
       "      <td>38H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>07H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>8CH</td>\n",
       "      <td>44H</td>\n",
       "      <td>44H</td>\n",
       "      <td>88H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>DB 00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>03H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>3CH</td>\n",
       "      <td>C4H</td>\n",
       "      <td>40H</td>\n",
       "      <td>40H</td>\n",
       "      <td>E4H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>04H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>0EH</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>88H</td>\n",
       "      <td>70H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>DB 03H</td>\n",
       "      <td>0CH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>1CH</td>\n",
       "      <td>00H</td>\n",
       "      <td>E0H</td>\n",
       "      <td>18H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>10H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>07H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>08H</td>\n",
       "      <td>F0H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>17H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>04H</td>\n",
       "      <td>C4H</td>\n",
       "      <td>04H</td>\n",
       "      <td>18H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>DB 10H</td>\n",
       "      <td>1FH</td>\n",
       "      <td>11H</td>\n",
       "      <td>11H</td>\n",
       "      <td>17H</td>\n",
       "      <td>10H</td>\n",
       "      <td>08H</td>\n",
       "      <td>00H</td>\n",
       "      <td>04H</td>\n",
       "      <td>FCH</td>\n",
       "      <td>04H</td>\n",
       "      <td>00H</td>\n",
       "      <td>C0H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "      <td>00H</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        0    2    3    4    5    6    7    8    9    10   11   12   13   14  \\\n",
       "0   DB 00H  07H  08H  10H  10H  08H  07H  00H  00H  F0H  08H  04H  04H  08H   \n",
       "1   DB 00H  08H  08H  1FH  00H  00H  00H  00H  00H  04H  04H  FCH  04H  04H   \n",
       "2   DB 00H  0EH  10H  10H  10H  11H  0EH  00H  00H  0CH  14H  24H  44H  84H   \n",
       "3   DB 00H  0CH  10H  11H  11H  12H  0CH  00H  00H  18H  04H  04H  04H  88H   \n",
       "4   DB 00H  00H  03H  04H  08H  1FH  00H  00H  00H  E0H  20H  24H  24H  FCH   \n",
       "5   DB 00H  00H  03H  04H  08H  1FH  00H  00H  00H  E0H  20H  24H  24H  FCH   \n",
       "6   DB 00H  07H  08H  11H  11H  18H  00H  00H  00H  F0H  88H  04H  04H  88H   \n",
       "7   DB 00H  1CH  10H  10H  13H  1CH  10H  00H  00H  00H  00H  FCH  00H  00H   \n",
       "8   DB 00H  0EH  11H  10H  10H  11H  0EH  00H  00H  38H  44H  84H  84H  44H   \n",
       "9   DB 00H  07H  08H  10H  10H  08H  07H  00H  00H  00H  8CH  44H  44H  88H   \n",
       "10  DB 00H  00H  03H  1CH  07H  00H  00H  00H  04H  3CH  C4H  40H  40H  E4H   \n",
       "11  DB 10H  1FH  11H  11H  11H  0EH  00H  00H  04H  FCH  04H  04H  04H  88H   \n",
       "12  DB 03H  0CH  10H  10H  10H  10H  1CH  00H  E0H  18H  04H  04H  04H  08H   \n",
       "13  DB 10H  1FH  10H  10H  10H  08H  07H  00H  04H  FCH  04H  04H  04H  08H   \n",
       "14  DB 10H  1FH  11H  11H  17H  10H  08H  00H  04H  FCH  04H  04H  C4H  04H   \n",
       "15  DB 10H  1FH  11H  11H  17H  10H  08H  00H  04H  FCH  04H  00H  C0H  00H   \n",
       "\n",
       "     15   16  \n",
       "0   F0H  00H  \n",
       "1   00H  00H  \n",
       "2   0CH  00H  \n",
       "3   70H  00H  \n",
       "4   24H  00H  \n",
       "5   24H  00H  \n",
       "6   70H  00H  \n",
       "7   00H  00H  \n",
       "8   38H  00H  \n",
       "9   F0H  00H  \n",
       "10  1CH  04H  \n",
       "11  70H  00H  \n",
       "12  10H  00H  \n",
       "13  F0H  00H  \n",
       "14  18H  00H  \n",
       "15  00H  00H  "
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "new_df.to_csv('right_zimo.txt', header=False, index=False)"
   ]
  }
 ],
 "metadata": {
  "hide_input": false,
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}